import React from 'react'
import { Outlet,Link,useLocation } from 'react-router-dom'
export default function Layout() {
  const location = useLocation()
  return (
    <div>
        <div>
            <Link to="/home">Home</Link>
            <Link to="/about">About</Link>
            <div>
                当前路由：{location.pathname}
            </div>
        </div>
        <Outlet />
    </div>
  )
}
